services.service("TestService",function ($q) {
  return {
    execute:function () {
      var deferred= $q.defer();
      // deferred.resolve({status:'1',info:'success'});
      deferred.reject({status:'0',info:'failed'});
      return deferred.promise;
    }
  }
});
